package com.aegis.manage.api.request;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Author renogo
 *
 * @Version 1.0
 * @Descritube
 */
@Data
public class AddMenuRequest implements Serializable {

    /**
     * 菜单名称
     */
    @NotBlank(message = "缺少菜单名称")
    private String menuName;
    /**
     * 父菜单id
     */
    private Integer parentId;
    /**
     * 路由、组件路径
     */
    private String path;
    /**
     * 排序
     */
    private Integer priority;
    /**
     * 菜单类型，1目录，2菜单，3按钮
     */
    @NotNull(message = "缺少菜单类型")
    private Integer menuType;

    /**
     * 菜单状态，0正常，1停用
     */
    @Min(value = 0, message = "菜单状态只能是0或1")
    @Max(value = 1, message = "菜单状态只能是0或1")
    private Integer status;

    /**
     * 图标
     */
    private String icon;

}
